import { NodeTypes } from "./ast";

export function isText(node) {
    return node.type === NodeTypes.INTERPOLATION || node.type === NodeTypes.TEXT;
}

export function isString(val) {
    return typeof val === "string";
}